package com.example.huadi1.utils;

import net.sf.jsqlparser.statement.select.Distinct;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class MyUtil {
    static public void myDistinct(List<Object> list){
        Set<Object> tmp=new HashSet<>();
        for(Object object:list){
            tmp.add(object);
        }
        list= Arrays.asList(tmp.toArray());
    }
}
